package services

import (
	"context"
	"wxapi/internal/svc"
	"wxapi/models"
)

func GetSkillList(ctx context.Context, svc *svc.ServiceContext) ([]*models.Skill, error) {
	list := make([]*models.Skill, 0)

	svc.Mysql.Model(&models.Skill{}).Where("state = 100").Order("`order`").Find(&list)

	return list, nil
}
